package com.baicai.componentdatadeliver;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

/**
 * 实现基本的数据类型传递
 */
public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    /**
     * 这个方法是跳转到第二个界面
     *
     * @param view
     */
    public void Jump2Second(View view) {

        Intent intent = new Intent(this, SecondActivity.class);

//        intent.putExtra("intKey", 100);
        startActivity(intent);

    }
}